package com.imedia.frame.test.testDao;
import java.util.ArrayList;
import java.util.List;

import com.imedia.frame.lucene.model.IndexModel;
public class Dao {
	
	/**
	 * 模拟数据库分页得到数据
	 * @param startRow
	 * @param count
	 * @return
	 */
	public static List getModelListFromDb(int startRow,int count){
		List modelList = new ArrayList();
		IndexModel indexModel = null;
		for (int i = startRow; i < count+startRow; i++) {
			indexModel = new IndexModel(i+"","hello"+i,"nihao"+i,"haha"+i,1,"url");
			modelList.add(indexModel);
		}
		return modelList;
	}
}	
